import router from "./router";

router.beforeEach((to,from,next) => {
    if(to.matched.some(record => record.mata.requireAuth)) {
        let token = localStorage.getItem("Authorization")
        if(token) {
          next()
        }else{
          next({name: "Login" })
        } 
    }
})